#ifndef GRAPHICSVIEW_H
#define GRAPHICSVIEW_H

#include <QGraphicsView>
#include <QTimeLine>

class GraphicsView :public QGraphicsView
{
	Q_OBJECT
public:
	GraphicsView(QWidget * parent = 0);
	virtual ~GraphicsView(void);

	void addContents();

protected:
	virtual void mouseMoveEvent ( QMouseEvent * );

public slots:
		void updateStep ( int );
		void stateChanged ( QTimeLine::State );
		void finished();

private:
	QGraphicsScene scene;
	QTimeLine *timeLine;
	int x;
	int y;
};

#endif
